package com.zjitc.model;

import java.util.Date;
import java.util.List;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/19 14:47
 * @description:
 */
public class Product {
  private Integer pid;
  private String pname;
  private double market_price;
  private double shop_price;
  private String image;

  @Override
  public String toString() {
    return "Product{" +
        "pid=" + pid +
        ", pname='" + pname + '\'' +
        ", market_price=" + market_price +
        ", shop_price=" + shop_price +
        ", image='" + image + '\'' +
        ", pdesc='" + pdesc + '\'' +
        ", is_hot=" + is_hot +
        ", pdate=" + pdate +
        ", categorySecond=" + categorySecond +
        ", evaluateList=" + evaluateList +
        ", cartItemList=" + cartItemList +
        ", orderitemList=" + orderitemList +
        '}';
  }

  private String pdesc;
  private Integer is_hot;

  public Product() {
  }

  private Date pdate;
  private CategorySecond categorySecond;
  private List<Evaluate> evaluateList;
  private List<CartItem> cartItemList;

  public Integer getPid() {
    return pid;
  }

  public void setPid(Integer pid) {
    this.pid = pid;
  }

  public String getPname() {
    return pname;
  }

  public void setPname(String pname) {
    this.pname = pname;
  }

  public double getMarket_price() {
    return market_price;
  }

  public void setMarket_price(double market_price) {
    this.market_price = market_price;
  }

  public double getShop_price() {
    return shop_price;
  }

  public void setShop_price(double shop_price) {
    this.shop_price = shop_price;
  }

  public String getImage() {
    return image;
  }

  public void setImage(String image) {
    this.image = image;
  }

  public String getPdesc() {
    return pdesc;
  }

  public void setPdesc(String pdesc) {
    this.pdesc = pdesc;
  }

  public Integer getIs_hot() {
    return is_hot;
  }

  public void setIs_hot(Integer is_hot) {
    this.is_hot = is_hot;
  }

  public Date getPdate() {
    return pdate;
  }

  public void setPdate(Date pdate) {
    this.pdate = pdate;
  }

  public CategorySecond getCategorySecond() {
    return categorySecond;
  }

  public void setCategorySecond(CategorySecond categorySecond) {
    this.categorySecond = categorySecond;
  }

  public List<Evaluate> getEvaluateList() {
    return evaluateList;
  }

  public void setEvaluateList(List<Evaluate> evaluateList) {
    this.evaluateList = evaluateList;
  }

  public List<CartItem> getCartItemList() {
    return cartItemList;
  }

  public void setCartItemList(List<CartItem> cartItemList) {
    this.cartItemList = cartItemList;
  }

  public List<Orderitem> getOrderitemList() {
    return orderitemList;
  }

  public void setOrderitemList(List<Orderitem> orderitemList) {
    this.orderitemList = orderitemList;
  }

  private List<Orderitem> orderitemList;

  public Product(Integer pid, String pname, double market_price, double shop_price,
      String image, String pdesc, Integer is_hot, Date pdate,
      CategorySecond categorySecond, List<Evaluate> evaluateList,
      List<CartItem> cartItemList, List<Orderitem> orderitemList) {
    this.pid = pid;
    this.pname = pname;
    this.market_price = market_price;
    this.shop_price = shop_price;
    this.image = image;
    this.pdesc = pdesc;
    this.is_hot = is_hot;
    this.pdate = pdate;
    this.categorySecond = categorySecond;
    this.evaluateList = evaluateList;
    this.cartItemList = cartItemList;
    this.orderitemList = orderitemList;
  }
}
